<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link type="text/css" rel="stylesheet" href="css/login.css" />
   <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
   <script type="text/javascript" src="js/login.js"></script>
   <title>登录</title>
   <script type="text/javascript">
      $(document).ready(function () {
         $("#login1").click(function () {
            var username=$("[name='username']").val();
            var  password=$("[name='password']").val();
            $.get("user/login",
                    {
                       "username":username,
                       "password":password
                    },
                    function (rs) {
                       var mess=rs.result;
                       alert(mess);
                       location.href ="index.html?username="+username+ "&amp;password=" +password;
                    });
         })
      })








   </script>
</head>

<body>
<div class="header">
   <div class="mainwarp">
      <div class="logo"><a href="index.html"><img src="images/log.png" /></a></div>
      <div class="welcome">欢迎登录</div>
      <div class="headerright">
         <a href="index.html">返回首页</a>
      </div>
   </div>
</div>
<div class="content">
   <div class="logtype"></div>
   <div class="clear"></div>
   <div class="logoDiv">
      <div class="logoLeft">
         <div class="leftimg">
            <img src="images/log1.gif" />
         </div>
         <div class="leftcon">
            <a href="" class="a1">手机触屏版</a>
            <a href="" class="a2">Android客户端下载</a>
            <a href="" class="a3">iPhone客户端下载</a>
         </div>
      </div>
      <div class="logoRight">
         <div class="normalLogin">
            <div class="username">
               <span></span>
               <input name="username" type="text" placeholder="请输入用户名/邮箱/已验证手机号"/>
            </div>
            <div class="password">
               <span></span>
               <input name="password" type="text" placeholder="请输入密码"/>
            </div>
            <div class="autoLogo">
               <a href="password.html" class="pasd">忘记密码？</a>
            </div>
            <div class="autoLogo">
               <span class="CheckBox Yes"></span>
               <span>我已阅读并接受<a href="user_agreement.html">用户协议</a></span>
            </div>
            <div class="logobtn">
               <!--<a href="login.html">登  录</a>-->
               <input type="button" id="login1" value="登录" style="color: #D84C09">
            </div>

            <div class="zcbtn">
               <a href="register.html">还没有账号？立即注册</a>
            </div>
         </div>
         <div class="weixinLogin">
            <div class="weixinQr">
               <img src="images/showqrcode.jpg" width="150" class="useHelpcon"/>
               <p>使用微信扫描上方二维码</p>
               <p class="useHelp useHelpcon">使用帮助</p>
            </div>
            <div class="zcbtn">
               <a href="register.html">还没有账号？立即注册</a>
            </div>
         </div>
      </div>
   </div>
</div>

<div class="clear"></div>
</body>
</html>
